cmake_minimum_required (VERSION 2.8)
# 项目信息
project (OCR)
aux_source_directory(. DIR_SRCS)
# 指定生成目标
add_executable(OCR ${DIR_SRCS})

include_directories(/usr/local/include/tesseract)
link_directories(/usr/local/lib)
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIR})

find_package(PkgConfig REQUIRED)
pkg_check_modules(Leptonica REQUIRED lept)

include_directories(${Leptonica_INCLUDE_DIRS})
target_link_libraries(OCR ${Leptonica_LIBRARIES} ${OpenCV_LIBRARIES} tesseract)


